/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.execute.controller;

import com.icinfo.cloud.provider.common.constant.Constant;
import com.icinfo.cloud.provider.punish.csource.manage.vo.CaseSourcePartyInfoVo;
import com.icinfo.cloud.provider.punish.execute.service.IExecutePartyInfoService;
import com.icinfo.cloud.provider.punish.execute.vo.ExecutePartyInfoVo;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 描述: 裁执分离当事人表（个人+企业） execute_party_info 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2022年08月24日
 */
@RestController
@RequestMapping("/punish/execute/party")
public class ExecutePartyInfoController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(ExecutePartyInfoController.class);

    @Autowired
    private IExecutePartyInfoService executePartyInfoService;

    /**
     * 【V1.4.2】描述： 查询当事人列表(裁执分离)
     *
     * @author: wuzhihui
     * @date: 2022/8/15
     * @param: executeId
     * @return {@link List < ExecutePartyInfoVo>}
     **/
    @GetMapping("/getExecutePartyInfo")
    public Result<List<ExecutePartyInfoVo>> getExecutePartyInfo(@RequestParam String executeId){
        List<ExecutePartyInfoVo> caseSourcePartyInfo = executePartyInfoService.getExecutePartyInfo(executeId);
        return Result.success(Constant.STRING_GET_SUCCESS, caseSourcePartyInfo);
    }
}